package com.app.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 银行卡表
 * </p>
 *
 * @author yoominic
 * @since 2024-09-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_bank")
public class Bank implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;



    /**
     * 用户id
     */
    private Integer userId;


    /**
     * 银行卡持卡人姓名
     */
    private String bankUserName;

    /**
     * 银行卡卡号
     */
    private String bankNum;

    /**
     * 银行卡开户行
     */
    private String bankName;

    /**
     * 银行卡开户行支行
     */
    private String bankBranch;

    /**
     * 创建时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:MM:SS", timezone = "GMT+8")
    private LocalDateTime createTime;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:MM:SS", timezone = "GMT+8")
    private LocalDateTime updateTime;

    private Integer status;

}
